package com.zkthink.ceres.promotion.dto;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 分销员
 * </p>
 *
 * @author kellen
 * @since 2020-08-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SalesLevelSaveDTO", description = "分销员")
public class SalesLevelSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 规则
     */
    @ApiModelProperty(value = "规则")
    private SalesLevelRuleDTO rule;
    /**
     * 间接分佣比例
     */
    @ApiModelProperty(value = "间接分佣比例")
    @NotNull(message = "间接分佣比例不能为空")
    private BigDecimal indirectRate;
    /**
     * 直接分佣比例
     */
    @ApiModelProperty(value = "直接分佣比例")
    @NotNull(message = "直接分佣比例不能为空")
    private BigDecimal directRate;
    /**
     * 等级名称
     */
    @ApiModelProperty(value = "等级名称")
    @NotEmpty(message = "等级名称不能为空")
    @Length(max = 32, message = "等级名称长度不能超过32")
    private String levelName;

}
